package com.rdl.relation;

import java.util.ArrayList;
import java.util.List;

/**
 *  表格信息描述
 *  @author Xairy
 */
public class TableInfo {
	private String tableName;   // 表名
	private int sliceNum;       // 分表个数
	private String sliceKeyFieldName;  // 分表字段的名称
	private String queryApiCmdId;        // 表查询命令字
	private String roleName;            // 操作该表的角色名称
	
	private String description;      // 表描述
	private String ddoName;     // 查询Api名称
	
	private List<FieldInfo> fields = new ArrayList<FieldInfo>();  // 表中的行描述
	
	public TableInfo()
	{
		this.tableName = "";
		this.sliceNum = 1;
		this.sliceKeyFieldName = "";
		this.roleName = "";
		this.description = "";
		this.ddoName = "";
		this.queryApiCmdId = "";
	}
	
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTableName() {
		return this.tableName;
	}

	public void setSliceNum(int sliceNum) {
		this.sliceNum = sliceNum;
	}

	public int getSliceNum() {
		return sliceNum;
	}

	public void setFields(List<FieldInfo> fields) {
		this.fields = fields;
	}

	public List<FieldInfo> getFields() {
		return fields;
	}

	public void setSliceKeyFieldName(String sliceKeyFieldName) {
		this.sliceKeyFieldName = sliceKeyFieldName;
	}

	public String getSliceKeyFieldName() {
		return sliceKeyFieldName;
	}

	public void setQueryApiCmdId(String queryApiCmdId) {
		this.queryApiCmdId = queryApiCmdId;
	}

	public String getQueryApiCmdId() {
		return queryApiCmdId;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}

	public void setDdoName(String ddoName) {
		this.ddoName = ddoName;
	}

	public String getDdoName() {
		return ddoName;
	}

}
